-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add workflow for integration tests, fix encoding / decoding of managed decimals #479
Add workflow for integration tests, fix encoding / decoding of managed decimals #479
Conversation
push: | ||
branches: | ||
- main | ||
pull_request: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
.withGasLimit(10000000) | ||
.withChainID(network.ChainID) | ||
.withSender(alice.address) | ||
.withValue(0); | ||
|
||
// addition() | ||
// addition(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting artifact.
buffers.push(Buffer.from(this.binaryCodec.encodeNested(new U32Value(value.getScale())))); | ||
} else { | ||
buffers.push(Buffer.from(this.binaryCodec.encodeTopLevel(new BigUIntValue(value.valueOf())))); | ||
buffers.push( | ||
this.binaryCodec.encodeTopLevel(new BigUIntValue(value.valueOf().shiftedBy(value.getScale()))), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here, above, and in managedDecimalSigned.ts
, some temporary variables can be added (for shorter lines) e.g.:
const rawValue = new BigUIntValue(value.valueOf().shiftedBy(value.getScale()))
6d972bc
mxpy localnet
.ManagedDecimalSigned